times = 1
while times <= 3:
    name =input("请输入用户名：")
    passwd = input("请输入用户名：")
    if name != 'root' or passwd != '123456':
        print('输入用户名或密码错误你还可以再试',3-times,'次')
        times += 1
        continue
    else:
        print('输入正确')
        break
else:
    print('登录失败')
